package com.sj.parksdk.net.base;

import com.xuexiang.xhttp2.model.ApiResult;

public class WetherResult<T> extends ApiResult<T> {

    private int status;
    private String desc;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return status;
    }

    @Override
    public String getMsg() {
        return desc;
    }


    @Override
    public boolean isSuccess() {
        return status == 1000;
    }
}
